package cc.telecomdigital.tdstock.activity.groups.more;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ScrollView;
import cc.telecomdigital.tdstock.R;
import cc.telecomdigital.tdstock.Tools.ActivityGroupController;
import cc.telecomdigital.tdstock.activity.BaseActivity;
import cc.telecomdigital.tdstock.activity.groups.MoreGroup;

/**
 * 免責聲明
 * @author ouyangzhihui
 *
 */
public class ReliefDeclarationActivity extends BaseActivity
{
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.more_relief_declaration);

		Button _toolBtnReturn = (Button) findViewById(R.id.more_returnbtn);
		_toolBtnReturn.setOnClickListener(new OnClickListener()
		{
			@Override
			public void onClick(View v)
			{
				Intent intent = new Intent(getApplicationContext(), MoreActivity.class);
				intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP| Intent.FLAG_ACTIVITY_NO_USER_ACTION);
				/*View currView = MoreGroup.group.getLocalActivityManager().startActivity(MoreActivity.class.getSimpleName(), intent).getDecorView();
				MoreGroup.group.setContentView(currView);*/
				
				SwitchForwardActivity(MoreActivity.class, intent);
				
			}

		});

		ScrollView scrollview = (ScrollView) findViewById(R.id.scrollview);
		scrollview.setScrollbarFadingEnabled(true);
	}
	
	@Override
	public ActivityGroupController GetActivityGroupController()
	{
		return MoreGroup.GetActivityGroupHostControl();
	}
	
}
